<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="用户流水" name="first">
        <flow v-if="activeName === 'first'" />
      </el-tab-pane>
      <el-tab-pane label="提现流水" name="second">
        <tran v-if="activeName === 'second'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import tran from './tran.vue'
import flow from './flow.vue'
export default {
  name: 'MoneyFlow',
  components: { tran, flow },
  // 数据字典
  data() {
    return {
      activeName: 'first'
    }
  },
  created() {
  },
  mounted: function() {
    const that = this
    window.onresize = function temp() {
      that.height = document.documentElement.clientHeight - 180 + 'px;'
    }
  },
  methods: {
    handleClick() {
    }
  }
}
</script>

    <style rel="stylesheet/scss" lang="scss" scoped>
      ::v-deep .el-tabs__header  {
        margin: 0;
      }

    </style>

